package org.jradweb.tools.generator.utils;

import org.apache.commons.logging.LogFactory;
import org.apache.maven.plugin.logging.Log;

/**
 *  *
 * Created On 2007-12-16
 * @author <a href="mailto:wagzhi@gmail.com">Paul Wang</a>
 * @version $Id: LogImpl.java 42 2008-03-05 01:15:20Z wagzhi $
 */
public class LogImpl implements Log {
	private org.apache.commons.logging.Log log;
	
	public LogImpl(Class clazz){
		log=LogFactory.getLog(clazz);
	}
	
	public void debug(CharSequence content) {
		log.debug(content);
	}

	public void debug(Throwable error) {
		log.debug(error);
	}

	public void debug(CharSequence content, Throwable error) {
		log.debug(content,error);
	}

	public void error(CharSequence content) {
		log.error(content);
	}

	public void error(Throwable error) {
		log.error(error);
	}

	public void error(CharSequence content, Throwable error) {
		log.error(content,error);
	}

	public void info(CharSequence content) {
		log.info(content);
	}

	public void info(Throwable error) {
		log.error(error);
	}

	public void info(CharSequence content, Throwable error) {
		log.info(content,error);
	}

	public boolean isDebugEnabled() {
		return log.isDebugEnabled();
	}

	public boolean isErrorEnabled() {
		return log.isErrorEnabled();
	}

	public boolean isInfoEnabled() {
		return log.isInfoEnabled();
	}

	public boolean isWarnEnabled() {
		return log.isWarnEnabled();
	}

	public void warn(CharSequence content) {
		log.warn(content);
	}

	public void warn(Throwable error) {
		log.warn(error);
	}

	public void warn(CharSequence content, Throwable error) {
		log.warn(content,error);
	}

}
